package com.wind.taobao.api.trade.product.rest
{
	import com.wind.taobao.core.webservice.TaobaoResponse;

	/**
	 * taobao.product.propimg.upload Response
	 * @author fxy
	 *
	 */
	public class ProductPropImgUploadResponse extends TaobaoResponse
	{
		public var url:String; // 	 Y 	 图片地址.这里返回的是绝对路径.
		public var pic_id:String; // 	Y 	图片id
		public var created:String; // 	Y 	添加时间.格式:yyyy-mm-dd hh:mm:ss
		public var modified:String; // 	Y 	修改时间.格式:yyyy-mm-dd hh:mm:ss 

		public function ProductPropImgUploadResponse(response:TaobaoResponse=null)
		{
			initResults();
		}

		private function initResults():void
		{
			if (body != null && this.isSuccess)
			{
				if (body["rsp"].hasOwnProperty("url"))
					url=body["rsp"]["url"];
				if (body["rsp"].hasOwnProperty("pic_id"))
					pic_id=body["rsp"]["pic_id"];
				if (body["rsp"].hasOwnProperty("created"))
					created=body["rsp"]["created"];
				if (body["rsp"].hasOwnProperty("modified"))
					modified=body["rsp"]["modified"];

			}
		}

	}
}